<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button id="btn1">跳转40BOM页面</button>
    <button id="btn2">返回</button>

    <script>
        let btn1ELe = document.getElementById('btn1');
        let btn2ELe = document.getElementById('btn2');

        btn1ELe.addEventListener('click', function () {
            location.href = './40-BOM浏览器对象模型.html';
        });

        btn2ELe.addEventListener('click', function () {
            history.back();
        });
    </script>
</body>

</html>